package com.asom.player.service;

public class Artist implements Comparable<Artist>
{
	String artistName;
	String albumArt;
	String key;
	
	int nrAlbums = -1;
	int nrSongs = -1;
	
	public Artist(
			String _artistName,
			String _key,
			String _nrAlbums,
			String _nrSongs)
	{
		artistName = _artistName;
		key = _key;
		
		try
		{
			nrAlbums = Integer.parseInt(_nrAlbums);
			nrSongs = Integer.parseInt(_nrSongs);
		}
		catch(NumberFormatException _ex)
		{
			
		}
	}
	
	String getKey()
	{
		return key;
	}
	
	public String getArtistName()
	{
		return artistName;
	}
	
	public void setAlbumArt(String _albumArt)
	{
		albumArt = _albumArt;
	}
	
	public String getAlbumArt()
	{
		return albumArt;
	}
	
	public int getNrAlbums()
	{
		return nrAlbums;
	}
	
	int getNrSongs()
	{
		return nrSongs;
	}
	
	@Override
	public int compareTo(Artist another)
	{
		return key.compareTo(another.getKey());
	}	
}
